package com.hotelsystem.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Logging {
    private Integer loggingId;
    private String message;

    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    private String operator;

    public Integer getLoggingId() {
        return loggingId;
    }

    public void setLoggingId(Integer loggingId) {
        this.loggingId = loggingId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    @Override
    public String toString() {
        return "Logging{" +
                "loggingId=" + loggingId +
                ", message='" + message + '\'' +
                ", createDate=" + createDate +
                ", operator='" + operator + '\'' +
                '}';
    }

    public Logging(Integer loggingId, String message, Date createDate, String operator) {
        this.loggingId = loggingId;
        this.message = message;
        this.createDate = createDate;
        this.operator = operator;
    }

    public Logging() {
    }
}
